import request from "@/utils/request"

export default {
    joinActivity(userId, activityId) {
        return request({
            url: `weddingadmin/join/joinActivity/${userId}/${activityId}`,
            method: 'GET',
        })
    },
    getAllActivity() {
        return request({
            url: `weddingadmin/join/getAllActivity`,
            method: 'GET',
        })
    },
    getActivityById(userId) {
        return request({
            url: `weddingadmin/join/getActivityById/${userId}`,
            method: 'GET',
        })
    },
    getOneActivity(id) {
        return request({
            url: `weddingadmin/join/getOneActivity/${id}`,
            method: 'GET',
        })
    },
    isJoin(userId, activityId) {
        return request({
            url: `weddingadmin/join/isJoin/${userId}/${activityId}`,
            method: 'GET',
        })
    },
    getAllUser(id) {
        return request({
            url: `weddingadmin/join/getAllUser/${id}`,
            method: 'GET',
        })
    }
}